package com.atguigu.common.exception;

/**
 * @author SYP
 * @date 2024/11/18 21:23
 */
public enum BizCodeEnume {
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式校验失败"),
    SMS_CODE_EXCEPTION(10002,"验证码获取频率太高，稍后再试"),
    USER_EXIST_EXCEPTION(10003,"用户已存在"),
    USERNAME_PASSWORD_INVALID(10004,"用户名或密码错误"),
    PHONE_EXIST_EXCEPTION(10005,"手机号已存在");

    private int code;
    private String msg;
    BizCodeEnume(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
